<?php

/**
 *
 * This file sets up environment for testing Solar with PHPUnit3.
 *
 *
 * @author Travis Swicegood <development [at] domain51 [dot] com>
 *
 * @package Solar
 *
 * @subpackage UnitTests
 *
 * @license Release under the same license as Solar
 *
 * @ignore
 */


/**
 *
 * Path to PHPUnit3
 *
 * Leave empty if PHPUnit3 is already in your include_path.
 *
 */
if (!isset($config['phpUnit_path'])) {
    $config['phpUnit_path'] = '';
}


/**
 *
 * An array of paths to various code that must be put in the include_path for
 * Solar to know about it.
 *
 * Note that the array is reversed, so priority is given to the last path in the
 * array.
 *
 */
if (isset($config['code_path'])) {
    $config['code_path'][] = realpath(dirname(__FILE__) . '/../');
} else {
    // working outside the Solar test framework
        
    $config['code_path'] = array(
        dirname(__FILE__) . '/../Solar/',
        dirname(__FILE__) . '/../',
        
    );
}


if (!isset($config['constants'])) {
    $config['constants'] = array();
}
$config['constants']['DOMAIN51_SOLAR_CONFIG_FILE'] = dirname(__FILE__) . '/Solar.config.php';

/**
 *
 * Nothing below this point should need to be changed.
 *
 * Setup the include_path based on the paths that were provided above.
 *
 */
if (!defined('SOLAR_GROUP')) {
    require dirname(__FILE__) . '/configRunner.php';
}
?>
